package com.example.demo.order.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import java.util.List;

/**
 * @ClassName CartBatchRequest
 * @Description 购物车批量操作请求参数
 * @Author MingChang.Wei
 * @Date 2025/9/26
 **/
@Data
@Schema(description = "购物车批量操作请求参数")
public class CartBatchRequest {
    
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", example = "admin")
    private String username;
    
    @NotEmpty(message = "购物车ID列表不能为空")
    @Size(max = 50, message = "批量操作数量不能超过50个")
    @Schema(description = "购物车ID列表")
    private List<Long> cartIds;
}
